package com.aspose.cells;

class zboa {
   byte[] a;
   String b;
   String c;
   int d;
   int e;
   int f;
   int g;
   boolean h;
   boolean i;
   boolean j;
   boolean k;
   Worksheet l;

   zboa(Worksheet var1) {
      this.l = var1;
   }

   String a() {
      return this.l.c().b().a(-1, -1, this.a, 0, 0, false);
   }

   void a(String var1) {
      String var2 = var1;
      if (var1.startsWith("=")) {
         var2 = var1.substring(1);
      }

      if (var2.indexOf(58) != -1 && var2.indexOf(33) == -1) {
         var2 = "'" + this.l.getName() + "'!" + var2;
      }

      this.a = this.l.c().x().a(-1, "=" + var2, 0, 0, 0, 32, false, true, false);
   }

   zbob[] b() {
      this.c();
      Cells var1 = this.l.c().get(this.c).getCells();
      zbob[] var2;
      int var3;
      Cell var4;
      zbob var5;
      if (this.d == this.f) {
         var2 = new zbob[this.g - this.e + 1];

         for(var3 = 0; var3 < var2.length; ++var3) {
            var4 = var1.checkCell(this.d, var3 + this.e);
            var5 = new zbob();
            var2[var3] = var5;
            if (var4 == null) {
               var5.b = 3;
            } else {
               var5.b = var4.getType();
               var5.a = var4.getValue();
            }
         }
      } else {
         var2 = new zbob[this.f - this.d + 1];

         for(var3 = 0; var3 < var2.length; ++var3) {
            var4 = var1.checkCell(this.d + var3, this.e);
            var5 = new zbob();
            var2[var3] = var5;
            if (var4 == null) {
               var5.b = 3;
            } else {
               var5.b = var4.getType();
               var5.a = var4.getValue();
            }
         }
      }

      return var2;
   }

   void c() {
      zaav.a(this.l.c(), this, this.a, -1);
   }

   void a(zboa var1, CopyOptions var2) {
      this.b = var1.b;
      this.c = var1.c;
      this.d = var1.d;
      this.e = var1.e;
      this.f = var1.f;
      this.g = var1.g;
      this.h = var1.h;
      this.i = var1.i;
      this.j = var1.j;
      this.k = var1.k;
   }
}
